package org.javascud.extensions.cxf.server;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.javascud.extensions.cxf.service.Hello;

public class HelloServiceClient
{
    public static void main(String[] args)
    {
        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
        factory.setServiceClass(Hello.class);

        factory.setAddress("http://localhost:8080/service/Hello");


        Hello client = (Hello) factory.create();

        String result = client.sayHello("felix");

        System.out.println("result is: " + result);

    }
}
